<?php $jobRequests = $pager->getResults() ?>
<div>
    <?php foreach ($jobRequests as $k => $jobRequest): ?>
        <div class="box margin_r30 <?php echo $k % 2 == 0 ? 'box_border' : '' ?> ">
            <h2><?php echo $jobRequest ?></h2>
            <div class="box_image_wrapper">
                <img src="/images/229/job_request_icon.png" alt="product 1" />
            </div>
            <p><?php echo __('visits') . ' : ' . $jobRequest->getVisits() ?></p>
            <p><?php echo __('by') . ' : ' . $jobRequest->getUser() ?></p>
            <p><?php echo __('category') . ' : ' . $jobRequest->getCategory() ?></p>
            <p><?php echo $jobRequest->getDescription() ?></p>

            <div class="cleaner_h10"></div>
            <div class="button_01"><a href="<?php echo url_for('ViewJob', array('jtitle' => $jobRequest->getTitle())) ?>"><?php echo __('View job') ?></a></div>
        </div>
        <?php if ($k % 2 > 0): ?>
            <div class="box_clear"></div>
        <?php endif ?>
    <?php endforeach; ?>
    <?php if ((count($jobRequests) % 2 > 0)): ?>
        <div class="box_clear"></div>
    <?php endif ?>
</div>
<div class="cleaner"></div>

<?php include_partial('global/pager', array('pager'     => $pager, 'routeName' => $routeName)) ?>
